//导入express和题库的业务逻辑处理的模块
const express = require('express');
const T_target_question = require('../router_handler/T_target_question');

const router = express.Router()


//试卷的内容分为    描述性内容   和    题目内容


//查询某一学科试卷规格中的类型和数量
router.get('/exam/target_question/desc', T_target_question.getALLPaperTQ)
                                                                                                                                                                                                                                                                                                                                      
// 创造试卷规格中的类型和数量
router.post('/exam/target_question/create', T_target_question.create_paperTQ)

//为某一个试卷修改试卷规格中的类型和数量
router.put('/exam/target_question/update', T_target_question.update_PaperTQ)

//删除试卷规格中的类型和数量
router.delete('/exam/target_question/delete', T_target_question.delete_paperTQ)

//查询试卷题型和数量
router.get('/exam/target_question/typeandnum', T_target_question.getTypeAndNum)

router.get('/exam/target_question/targetandtype', T_target_question.targetAndType)

//导出
module.exports = router